<form>
<div id ="alertas"></div>
  <table>
    <tr>
      <td>CPF</td>
      <td> <input name ='cpf_func' size ='15' maxlength ='21'
	    id = 'cpf_func' value ="<?= (isset($func[0]->cpf))? $func[0]->cpf: $cpf; ?>" disabled>
	    <input type ="hidden" name ="id_func" id ="id_func" value ="<?= (isset($func[0]->id))? $func[0]->id: ""; ?>">
      </td>
    </tr>
    <tr>
      <td>Nome</td>
      <td> <input name ='nome_func' size ='30' maxlength ='100' 
	    id = 'nome_func' value ="<?= isset($func[0]->nome)? $func[0]->nome: ""; ?>"></td>
    </tr>
    <tr>
      <td>Cargo CGU</td>
      <td><?= $cargoCGU;?> </td>
    </tr>
    <tr>
      <td>Cargo CASEMG</td>
      <td> <input name ='cargo_casemg' size ='20' maxlength ='30' 
	    id = 'cargo_casemg' value ="<?= isset($func[0]->cargo_casemg)? $func[0]->cargo_casemg: ""; ?>" ></td>
    </tr>
  </table>
<div id ="botoes">
  <button type = 'button' onclick = '<?= isset($func[0]->id)?"alterarFuncionario({$func[0]->id})":"cadastrarFuncionario()" ?>' >Continuar</button>
</div>
</form>
